|
![](/i/fill.gif) |
Hi,
if I have an object with already have some texture, how can I discard all
texture settings from it (strip texture), and apply a new texture to it?
Example:
#declare obj =
union {
sphere { -x 1 pigment { rgb x } } // ((B))
sphere { +x 1 pigment { rgb y } } // ((C))
sphere { +y 1 } sphere { -z .1 }
pigment { rgb .5 }
scale 100 rotate y*30
translate y*100
}
object {
obj
pigment { rgb 1 } // ((A))
}
and I would like the object to be entire white - rgb 1. Currently the line
((A)) do not change red and green texture in ((B)) and ((C))
Rest part of minimal example scene:
plane { y,0 pigment { rgbf .8 } finish { diffuse 0 ambient 1 } no_shadow }
camera { location <100,70,-500>*1.3 look_at y*50 }
light_source { <1000,0,-15000> rgb 1 }
light_source { <1000,1000,-150> rgb 1 }
--
http://www.raf256.com/3d/
Rafal Maj 'Raf256', home page - http://www.raf256.com/me/
Computer Graphics
Post a reply to this message
|
![](/i/fill.gif) |